<!--
 * @Author: 孙大大
 * @Date: 2022-04-13 02:34:03
 * @LastEditTime: 2022-04-13 03:02:32
 * @FilePath: \黑马面面\src\views\questions\new\Editor1.vue
-->
<!--
 * @Author: 孙大大
 * @Date: 2022-04-11 19:36:19
 * @LastEditTime: 2022-04-13 02:23:22
 * @FilePath: \黑马面面\src\views\questions\new\Editor.vue
-->
<template>
  <quill-editor @change="getData1($event)"> </quill-editor>
</template>

<script>
import { quillEditor } from "vue-quill-editor";

export default {
  components: {
    quillEditor,
  },
  methods: {
    // 获取编辑器内容
    getContent() {
      // return this.$refs.quillEditor.quill.root.innerHTML;
    },
    // 设置编辑器内容
    setContent(content) {
      // this.$refs.quillEditor.quill.root.innerHTML = content;
    },
    // 获取编辑器内容
    getData1(e) {
      // console.log("@@@", e);
      this.$emit("getData1", e.html);
    },
  },
};
</script>

<style lang="less" scoped>
.quill-editor {
  height: 200px;
}
</style>
